package com.cdbkj.cloud.pos.bean;

import android.media.Image;

/**
 * @author yyh
 *
 * @date 2018/04/13
 *
 * @description 打印机辅助类
 */
public class PrintModel {

    /**
     * 变量前面的文字描述
     */
    private String name;
    /**
     * 变量值
     */
    private String val;
    /**
     * 是否换行打印
     */
    private Boolean isWrap = false;
    /**
     * 是否空格
     */
    private Boolean isSpace = false;
    /**
     * 图片信息
     */
    private Image image;


    public PrintModel(){

    }

    public PrintModel(String name, String val) {
        this.name = name;
        this.val = val;
    }
    public PrintModel(String val) {
        this.val = val;
    }
    public PrintModel(Image image) {
        this.image = image;
    }

    public PrintModel(String name, String val, Boolean isSpace) {
        this.name = name;
        this.val = val;
        this.isSpace = isSpace;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public Boolean getIsWrap() {
        return isWrap;
    }

    public void setIsWrap(Boolean isWrap) {
        this.isWrap = isWrap;
    }

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }

    public Boolean getIsSpace() {
        return isSpace;
    }

    public void setIsSpace(Boolean space) {
        isSpace = space;
    }
}


